#include "glare.core.Driver.h"

namespace Glare {

	Driver::Driver() 
		: _log(NULL)
	{
	}

	const bool Driver::IsPipelineStageSupported(const DriverStage::Type& stage_type) const
	{
		return (stage_type & GetSupportedStages()) != 0;
	}

	void Driver::SetLog(Log* log)
	{
		_log = log;
	}

	Log* Driver::GetLog() const
	{
		return _log;
	}

	void Driver::WriteLog(const string& message, const LogMessageType& message_type)
	{
		if (_log)
			_log->LogMessage(message, message_type);
	}
}
